﻿<!--#include file="../Include/Config.asp"-->
<%
dim Survey_id,sql,va
Survey_id=request.QueryString("Survey_id")
Question_id=request.QueryString("Question_id")
i=request.QueryString("i")
sql="delete from question where Question_id="&Question_id
conn.execute(sql)
sql="select Survey_content from survey where Survey_id="&Survey_id
rs.open sql,conn,1,3
Survey_content=split(rs("Survey_content"),",")
Survey_content(i)=""
va=""
for i=0 to ubound(Survey_content)
if not Survey_content(i)="" then
  if va="" then
  va=Survey_content(i)
  else
  va=va&","&Survey_content(i)
  end if
end if
next
rs("Survey_content")=va
rs.update
rs.close
call ShowAlert("删除成功","QuestionList.asp?Survey_id="&Survey_id&"")
%>

